home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
cross
/
GBDK-2.0.lha
/
GBDK
/
lib
/
calloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-10-01
|
234b
|
15 lines
#include <sys/malloc.h>
#include <string.h>
void *calloc( UWORD nmem, UWORD size )
{
void *malloced;
malloced = malloc( nmem*size );
if (malloced!=NULL) {
memset( malloced, 0, nmem*size );
return malloced;
}
return NULL;
}